@switch(control.type){
@case ("group"){
<app-form-group [group]="control.group"
  [groupName]="control.key"
  [schema]="$any(schema)"></app-form-group>
}
@case ("array"){
<app-form-array [array]="control.array"
  [arrayName]="control.key"></app-form-array>

}
@case ("control"){
@if(groupName){
<app-form-field [group]="group"
  [groupName]="groupName"
  [control]="control"
  [schema]="$any(schema)"></app-form-field>
}
@else{
<app-form-field [group]="group"
  [control]="control"
  [schema]="$any(schema)"></app-form-field>
}
}
}